//
//  DetailArchiveModel.m
//  iNews
//
//  Created by lanou3g on 14-12-13.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "DetailArchiveModel.h"

@implementation DetailArchiveModel

- (void)dealloc
{
    [_setname release];
    [_postid release];
    [_imageArray release];
    [_noteArray release];
    [_image release];
    [_note release];
    
    [super dealloc];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

//反归档
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.setname forKey:@"setname"];
    [aCoder encodeObject:self.postid forKey:@"postid"];
    [aCoder encodeObject:self.noteArray forKey:@"noteArray"];
    [aCoder encodeObject:self.imageArray forKey:@"imageArray"];
    
    [aCoder encodeObject:self.image forKey:@"image"];
    [aCoder encodeObject:self.note forKey:@"note"];
}

//归档
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        
        self.setname = [aDecoder decodeObjectForKey:@"setname"];
        self.postid = [aDecoder decodeObjectForKey:@"postid"];
        self.noteArray = [aDecoder decodeObjectForKey:@"noteArray"];
        self.imageArray = [aDecoder decodeObjectForKey:@"imageArray"];
        
        self.image = [aDecoder decodeObjectForKey:@"image"];
        self.note = [aDecoder decodeObjectForKey:@"note"];
        
    }
    
    return self;
    
}



@end
